From
dbc19dcbb0d16484ec77e8ba1ec590b71d286570 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
Date: Mon, 3 Aug 2026 12:30:45 +0300
Subject: [PATCH] adpcmdec: Fix IMA ADPCM input size check to match with the
actual code
Gbp-Pq: Name CVE-2026-19387.patch
return FALSE;
if (!gst_structure_get_int (structure, "block_align", &dec->blocksize))
- dec->blocksize = -1; /* Not provided */
+ return FALSE;
if (!gst_structure_get_int (structure, "rate", &dec->rate))
return FALSE;
int i, j;
int sample;
- if ((n_samples - dec->channels) % 8 != 0) {
+ if ((n_samples - dec->channels) % (8 * dec->channels) != 0) {
GST_WARNING_OBJECT (dec, "Input not correct size");
return FALSE;
}